From 4a5e31d89d5dcdd073628e1f994e28d79f227af3 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 9 May 2025 15:07:25 +0200 Subject: [PATCH] feat(windows): use cmake to configure windows integration DLL version Signed-off-by: Matthieu Gallien --- shell_integration/windows/NCUtil/CMakeLists.txt | 3 ++- shell_integration/windows/NCUtil/{Version.h => Version.h.in} | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename shell_integration/windows/NCUtil/{Version.h => Version.h.in} (77%) diff --git a/shell_integration/windows/NCUtil/CMakeLists.txt b/shell_integration/windows/NCUtil/CMakeLists.txt index fa75e1593..1b5610253 100644 --- a/shell_integration/windows/NCUtil/CMakeLists.txt +++ b/shell_integration/windows/NCUtil/CMakeLists.txt @@ -7,5 +7,6 @@ add_library(NCUtil STATIC target_include_directories(NCUtil PUBLIC - "${CMAKE_CURRENT_SOURCE_DIR}" + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} ) diff --git a/shell_integration/windows/NCUtil/Version.h b/shell_integration/windows/NCUtil/Version.h.in similarity index 77% rename from shell_integration/windows/NCUtil/Version.h rename to shell_integration/windows/NCUtil/Version.h.in index 365156919..eb97edb91 100644 --- a/shell_integration/windows/NCUtil/Version.h +++ b/shell_integration/windows/NCUtil/Version.h.in @@ -2,10 +2,10 @@ // This is the number that will end up in the version window of the DLLs. // Increment this version before committing a new build if you are today's shell_integration build master. -#define NCEXT_BUILD_NUM 47 +#cmakedefine NCEXT_BUILD_NUM @NCEXT_BUILD_NUM@ #define STRINGIZE2(s) #s #define STRINGIZE(s) STRINGIZE2(s) -#define NCEXT_VERSION 3,0,0,NCEXT_BUILD_NUM +#cmakedefine NCEXT_VERSION @NCEXT_VERSION@ #define NCEXT_VERSION_STRING STRINGIZE(NCEXT_VERSION) -- 2.30.2